<!--
  描述：产品组详情页
  @author tanghongjun
  @since 2020-08-19 11:18:36
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss2">
    <title>新增或编辑照片</title>
</head>
<body>

<div class="layui-fluid">

    <div class="layui-card">
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">

            <input type="hidden" name="channelId" th:value="${obj.channelId}"/>
            <input type="hidden" name="id" th:value="${obj.relateId}"/>

            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label ">照片类型：</label>
                <div class="layui-form-mid" style="width:200px">
                    <span th:text="${pictureTypeName}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">应用渠道：</label>
                <div class="layui-form-mid" style="width:200px">
                    <span th:text="${channelName}"></span>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label ">业务类型：</label>
                <div class="layui-form-mid" style="width: 200px">
                    <span th:if="${obj.bizType == 1||obj.bizType ==null}">C-保外业务</span>
                    <span th:if="${obj.bizType == 2}">F-保内业务</span>
                    <span th:if="${obj.bizType == 3}">B-工程业务</span>
                </div>
            </div>

            <!--服务分类-->
            <div class="layui-form-item">
                <label class="layui-form-label ">服务分类：</label>
                <div class="layui-form-mid" style="width:200px">
                    <span th:text="${servCategNames}"></span>
                </div>
            </div>

            <div class="layui-card-body">
                <div id="zmn-audit-table" lay-filter="zmn-audit-table"></div>
                <script type="text/html" id="zmn-table-tool">
                    <div class="layui-btn-container">
                        <div class="layui-btn-group">
                            <zmn th:if="${#authPermit.checkPermit('/channel/workorder/picture/addEditView.action')}">
                                <a href="#" lay-event="add" class="layui-btn layui-btn-sm layui-btn-primary"
                                   lay-text="新增" text="新增">添加识别物</a>
                            </zmn>
                        </div>
                    </div>
                </script>
            </div>

            <div class="layui-split">&nbsp;</div>
            <div class="layui-form-item layui-layout-admin">
                <div class="layui-input-block">
                    <div class="layui-footer" style="left: 0;">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit"
                                th:if="${#authPermit.checkPermit('/channel/workorder/picture/addEdit.action')}">保存
                        </button>
                        <button class="layui-btn layui-btn-primary" onclick="cancel()" id="cancleBtn">
                            取消
                        </button>
                    </div>
                </div>
            </div>

        </form>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        obj: [[${obj}]],
        servCategories: [[${servCategories}]],
        standardList: [[${standardList}]]
    };


    layui.config({
        base: "/static/lay/",
        version: "202008201436"
    }).extend({
        index: "lib/index",
        channel_workorder_picture_auditStandard: "channel/workorder/picture/zmn.plat.channel.workorder.picture.auditStandard",
    }).use(['index', 'channel_workorder_picture_auditStandard']);

</script>
</body>
</html>